<?php
 
 class indexAction extends AdminPublicAction {
	
	public function index(){
			$group_id = get_user_group(session('adminId'),'id');
			$group_rule = M('think_auth_group')->where(array('id'=>$group_id))->find();
			$group_rule_arr = explode(',',$group_rule['rules']);
			if(session('adminId') == C('adminId')){
				$this->redirect('Category/index');
			}else{
				$this->redirect($group_rule_arr[0].'/index');
				}
		}
}